package cn.jbt.api.admin.repository;

import cn.jbt.api.admin.entity.CmsPlaceInfo;
import org.springframework.data.jpa.repository.JpaRepository;


public interface CmsPlaceInfoRepository extends JpaRepository<CmsPlaceInfo, Long> {

    CmsPlaceInfo findFirstById(long id);

    CmsPlaceInfo findFirstByCode(String code);

    CmsPlaceInfo findFirstByCodeAndIdNot(String code, long id);

}
